package edu.nf.bs.dao.impl;

import edu.nf.bs.dao.AdminMapper;
import edu.nf.bs.entity.Admin;
import edu.nf.bs.util.MyBatisUtils;
import org.apache.ibatis.session.SqlSession;

public class AdminMapperImpl implements AdminMapper {
    @Override
    public Admin getAdminHost(String adminHost) {
        SqlSession sqlSession = MyBatisUtils.getSqlSession(true);
        Admin adminHost1 = sqlSession.getMapper(AdminMapper.class).getAdminHost(adminHost);
        sqlSession.close();
        return adminHost1;
    }
}
